package org.jmh.gift.controller;


import org.jmh.gift.doc.GiftDoc;
import org.jmh.gift.servcie.IGiftDocService;
import org.jmh.gift.util.AjaxResult;
import org.jmh.query.GiftDocQuery;
import org.jmh.util.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/giftDoc")
public class GiftDocController {

    @Autowired
    private IGiftDocService giftDocService;


    @PostMapping
    public AjaxResult page(@RequestBody GiftDocQuery query){
        PageInfo<GiftDoc> info =giftDocService.page(query);
        return AjaxResult.success(info);
    }
}
